AEInteractWithUser
long timeOutinTicks ; time to wait for user response
IdleProcPtr idleProc ; pointer to your idle function
the user when your application is a server application responding to an Apple
event.
The timeOutInTicks parameter is the amount of time (in ticks) that your handler is willing to wait for a response from the user.
provided by your application. You can specify NIL for this parameter to get the
The idleProc parameter is a pointer to your application's idle function, which control.
the kAENeverInteract flag for the Apple event and, if so, returns an error. If
against the source of the Apple event-that is, whether it came from the same
application, another application or process on the same computer, or an
application or process running on another computer.
the user-interaction preferences don't allow user interaction. If user
the front, either directly or by posting a notification request. If
is in the foreground and is free to interact with the user.
For a program example showing usage of this routine, see the description of
Result codes
noErr (0) No error
errAETimeout (-1712) Apple event timed out
errAENoUserInteraction (-1713) No user interaction allowed